package inter.service;

public class File {
    private String name;
    private String format;

    public void say(){
        System.out.println(this.getName()+"."+this.getFormat()+"开始文件上传---");
    }
    public void init(){
        if(this.getFormat().equals("jpg")){
            System.out.println("文件初始化成功");
        }else{
            System.out.println("文件初始化失败");
        }
    }

    public void destroy(){
        System.out.println("文件开始销毁---");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getFormat() {
        return format;
    }

    public void setFormat(String format) {
        this.format = format;
    }
}
